{extends file="layout.tpl"}

{block name=title} Pick a New Nit {/block}

{block name=body}
		<h2 class=header_message><strong> Pick a New Nit! </strong></h2>
			{if $failed} <p> Try again, Sucker! </p> 
			{else} <p> Have something stuck in your craw? <br /><br />
			Tell us what's been bothering you! </p> {/if}
		<form id=incident_form name="Nit" method="POST">
			<label id= "nit_title"> Nitle </label><br />
				<input type="text" name="title" id= "nit_title" /> <br /> <br />
			<div id= "category_select"><label class = "nit"> Nitegory! </label>
					<select name="category">
						<option value="0">Choose!</option>
						{foreach from=$categories item=category key=key}
						<option value="{$key}" >{$category}</option>
						{/foreach}	
					</select> </div>
			<label class= "nit">	Nitscription! </label>
					<textarea name="description" class= "nit"/>
					</textarea>
					<br />
					<br />
				
			<label class= "nit"> NitRating!! </label><br />
					<div id= "ratings">{foreach from=$ratings item=rating key=key}
						<div class= "rating"><input type="radio" name="rating" value="{$key}" /> {$rating}</div>
					{/foreach}</div>
			<div><input id = "submit_nit" type="submit" value="Post!" /></div>
		</form>	
					
{/block}
